<template>
	<view>
		<view class="itu-demo">
			<view class="itu-demo-wrap">
				<view class="itu-demo-title">演示效果</view>
				<view class="itu-demo-area">
					<itu-quick-access :list="list" :height="190" :size="4">
						<template v-slot="{data}">
							<view class="itu-flex itu-flex-direction itu-align-center itu-justify-center itu-pt-25">
								<image class="quick-access" :src="data.icon" mode="aspectFill"></image>
								<view class="itu-text-sm itu-mt-10 itu-text-gray">{{ data.name }}</view>
							</view>
						</template>
					</itu-quick-access>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [
					{ name: '功能模块1', icon: require('@/static/logo.png') },
					{ name: '功能模块2', icon: require('@/static/logo.png') },
					{ name: '功能模块3', icon: require('@/static/logo.png') },
					{ name: '功能模块4', icon: require('@/static/logo.png') },
					{ name: '功能模块5', icon: require('@/static/logo.png') },
					// { name: '功能模块6', icon: require('@/static/logo.png') },
				],
			}
		},
		onLoad({title}) {
			this.setNavigationBarTitle(title)
		},
	}
</script>

<style>
	.quick-access {
		width: 60rpx;
		height: 60rpx;
		padding: 20rpx;
		border-radius: 50%;
		background-color: #e6e6e6;
	}
</style>